package com.easylinkin.linkappapi.webcammanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.webcammanage.entity.DataAnalystBean;
import com.easylinkin.linkappapi.webcammanage.entity.QueryDataCondition;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 数据分析Service
 */
public interface DataAnalystESService extends IService<DataAnalystBean> {

    //分页查询获取列表
    IPage<DataAnalystBean> selectDataAnalystPage(Page page, QueryDataCondition queryDataCondition);

    //保存新增数据分析记录
    String[] insertDataAnalystRecord(DataAnalystBean dataAnalystBean);

    //批量保存石化数据
    String[] insertDataAnalystRecord(List<DataAnalystBean> dataAnalystBean);

    //逻辑删除数据分析记录
    Boolean deleteDataAnalystRecord(String id);

    //修改数据  根据主键ID
    Boolean updateDataAnalystRecord(DataAnalystBean dataAnalystBean);

    //获取详情   用不到
    DataAnalystBean getDataAnalystInfoByCondition(DataAnalystBean dataAnalystBean);

    //导入石化设备数据信息
    String[] importYYSHData(MultipartFile file);

    //导出岳阳石化数据
    void exportYYSHData(QueryDataCondition queryParams, HttpServletRequest request, HttpServletResponse response);

    //导出模板文件
    void exportYYSHTemplateFile(HttpServletRequest request, HttpServletResponse response);

}
